﻿@model FILSTARTUPS_CMS.Models.Category

@{
    ViewBag.Title = "Edit";
}

@section Pagename
{
<h2>Edit <small>Category</small></h2>
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Edit", "Category", FormMethod.Post, new { @class = "form-stacked" }))
{
    @Html.ValidationSummary(true)
    <fieldset>

        @Html.HiddenFor(model => model.catidPK)

        <div class="editor-label">
            @Html.LabelFor(model => model.categoryname)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.categoryname)
            @Html.ValidationMessageFor(model => model.categoryname)
        </div>

         <div class="editor-label">
            @Html.LabelFor(model => model.pageidFK)
        </div>
        <div class="editor-field">
            @Html.DropDownList("pageidPK")
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.routingidFK)
        </div>
        <div class="editor-field">
            @Html.DropDownList("routing")
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.categorydescription)
        </div>
        
        <div class="editor-field">
            @Html.TextAreaFor(model => model.categorydescription)
            @Html.ValidationMessageFor(model => model.categorydescription)
        </div>
        <br />

        <p>
            <input type="submit" value="Save" class="ui-button-text"/>
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")

</div>
